package cn.myfirefly.core.model;

import java.io.Serializable;
import java.util.Date;

public class Identity implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 3815249749057938867L;
	private Integer userSn;
	private Integer staffSn;
	private String staffNo;
	private String userName;
	private String loginName;
	private String name;
	private String nickName;
	private Character sex;
	private String email;
	private String address;
	private String phoneNo;
	private Character highestEducation;
	private String graduatedFrom;
	private String profession;
	private Character credentialType;
	private String credentialNo;
	private String title;
	private Character status;
	private Character userStatus;
	private Date lastLoginTime;
	private Integer departmentSn;
    private String departmentName;
    
	public Integer getUserSn() {
		return userSn;
	}
	public void setUserSn(Integer userSn) {
		this.userSn = userSn;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getNickName() {
		return nickName;
	}
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	public Character getSex() {
		return sex;
	}
	public void setSex(Character sex) {
		this.sex = sex;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getPhoneNo() {
		return phoneNo;
	}
	public void setPhoneNo(String phoneNo) {
		this.phoneNo = phoneNo;
	}
	public Character getHighestEducation() {
		return highestEducation;
	}
	public void setHighestEducation(Character highestEducation) {
		this.highestEducation = highestEducation;
	}
	public String getGraduatedFrom() {
		return graduatedFrom;
	}
	public void setGraduatedFrom(String graduatedFrom) {
		this.graduatedFrom = graduatedFrom;
	}
	public String getProfession() {
		return profession;
	}
	public void setProfession(String profession) {
		this.profession = profession;
	}
	public Character getCredentialType() {
		return credentialType;
	}
	public void setCredentialType(Character credentialType) {
		this.credentialType = credentialType;
	}
	public String getCredentialNo() {
		return credentialNo;
	}
	public void setCredentialNo(String credentialNo) {
		this.credentialNo = credentialNo;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public Character getStatus() {
		return status;
	}
	public void setStatus(Character status) {
		this.status = status;
	}
	public Character getUserStatus() {
		return userStatus;
	}
	public void setUserStatus(Character userStatus) {
		this.userStatus = userStatus;
	}
	public Date getLastLoginTime() {
		return lastLoginTime;
	}
	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}
	public String getLoginName() {
		return loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	public Integer getStaffSn() {
		return staffSn;
	}
	public void setStaffSn(Integer staffSn) {
		this.staffSn = staffSn;
	}
	public String getStaffNo() {
		return staffNo;
	}
	public void setStaffNo(String staffNo) {
		this.staffNo = staffNo;
	}
	public Integer getDepartmentSn() {
		return departmentSn;
	}
	public void setDepartmentSn(Integer departmentSn) {
		this.departmentSn = departmentSn;
	}
	public String getDepartmentName() {
		return departmentName;
	}
	public void setDepartmentName(String departmentName) {
		this.departmentName = departmentName;
	}
	
	public boolean isAdmin() {
		if (this.userSn == 1) {
			return true;
		}
		return false;
	}
}
